GUI Help > Create > copyGadget

copyGadget
int handle=copyGadget(handle existingGadget)

Description:
Creates a "shallow" copy of an existing gadget. The new gadget will have the same type, size and position as the original gadget. However, any other properties will not be copied.

Return Value:
Handle to the new gadget

Parameters:
existingGadget Handle to the existing gadget to be copied.
Remarks:
It is faster to use one call to setGadget than seperate calls to resizeGadget and moveGadget.

See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)